package exercise3;

import java.util.Arrays;

import javax.swing.JOptionPane;

public class AllNumberOfDivison {
	public static void printAllNumberOfDivison() {
		int count = 0;
		int[] a = new int[1000];
		StringBuilder str=new StringBuilder();
		for (int i = 100; i <= 1000; i++) {
			if (i % 5 == 0 && i % 6 == 0) {
				a[count] = i;
				count++;
			}
		}
		int[] b = new int[count];
		for (int i = 0; i < b.length; i++) {
			b[i] = a[i];
			str.append(String.valueOf(b[i]));
			str.append(" ");
			if((i+1)%10==0) {
				str.append("\n");
			}
		}
		JOptionPane.showMessageDialog(null, str.toString());
	}
}
